.class public Lcom/instagram/android/feed/a/b/l;
.super Ljava/lang/Object;
.source "LocationRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 27
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_map_header:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 28
    new-instance v2, Lcom/instagram/android/feed/a/b/n;

    invoke-direct {v2}, Lcom/instagram/android/feed/a/b/n;-><init>()V

    .line 29
    sget v0, Lcom/facebook/aw;->foursquare_glyph:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/n;->a(Lcom/instagram/android/feed/a/b/n;Landroid/widget/ImageView;)Landroid/widget/ImageView;

    .line 30
    sget v0, Lcom/facebook/aw;->row_map_header_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/IgImageView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/n;->a(Lcom/instagram/android/feed/a/b/n;Lcom/instagram/android/mediacache/IgImageView;)Lcom/instagram/android/mediacache/IgImageView;

    .line 31
    sget v0, Lcom/facebook/aw;->row_map_header_textview_location_name:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/n;->a(Lcom/instagram/android/feed/a/b/n;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 32
    sget v0, Lcom/facebook/aw;->row_map_header_textview_location_address:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-static {v2, v0}, Lcom/instagram/android/feed/a/b/n;->b(Lcom/instagram/android/feed/a/b/n;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 33
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_grid:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/n;->a:Landroid/widget/Button;

    .line 35
    sget v0, Lcom/facebook/aw;->layout_button_group_view_switcher_button_list:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/a/b/n;->b:Landroid/widget/Button;

    .line 37
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 38
    return-object v1
.end method

.method public static a(Lcom/instagram/android/feed/a/b/n;Lcom/instagram/venue/model/Venue;Landroid/content/Context;Lcom/instagram/android/feed/a/a;)V
    .locals 7
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 44
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/n;->a:Landroid/widget/Button;

    iget-object v1, p0, Lcom/instagram/android/feed/a/b/n;->b:Landroid/widget/Button;

    invoke-static {v0, v1, p3}, Lcom/instagram/android/widget/ba;->a(Landroid/widget/Button;Landroid/widget/Button;Lcom/instagram/android/feed/a/a;)V

    .line 46
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->a(Lcom/instagram/android/feed/a/b/n;)Landroid/widget/ImageView;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/feed/a/b/m;

    invoke-direct {v1, p1, p2}, Lcom/instagram/android/feed/a/b/m;-><init>(Lcom/instagram/venue/model/Venue;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 56
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->b(Lcom/instagram/android/feed/a/b/n;)Lcom/instagram/android/mediacache/IgImageView;

    move-result-object v6

    const-string v1, "14"

    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->b(Lcom/instagram/android/feed/a/b/n;)Lcom/instagram/android/mediacache/IgImageView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/mediacache/IgImageView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/k;->a(Landroid/content/Context;)I

    move-result v2

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v3, Lcom/facebook/au;->map_height:I

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->f()Ljava/lang/Double;

    move-result-object v4

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->g()Ljava/lang/Double;

    move-result-object v5

    move-object v0, p1

    invoke-static/range {v0 .. v5}, Lcom/instagram/android/widget/w;->a(Lcom/instagram/venue/model/Venue;Ljava/lang/String;IILjava/lang/Double;Ljava/lang/Double;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Lcom/instagram/android/mediacache/IgImageView;->setUrl(Ljava/lang/String;)V

    .line 62
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->b(Lcom/instagram/android/feed/a/b/n;)Lcom/instagram/android/mediacache/IgImageView;

    move-result-object v6

    new-instance v0, Lcom/instagram/android/widget/x;

    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->b(Lcom/instagram/android/feed/a/b/n;)Lcom/instagram/android/mediacache/IgImageView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/mediacache/IgImageView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->f()Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->g()Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->b()Ljava/lang/String;

    move-result-object v4

    const-string v5, "14"

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/widget/x;-><init>(Landroid/content/Context;Ljava/lang/Double;Ljava/lang/Double;Ljava/lang/CharSequence;Ljava/lang/String;)V

    invoke-virtual {v6, v0}, Lcom/instagram/android/mediacache/IgImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 66
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->c(Lcom/instagram/android/feed/a/b/n;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 68
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->d(Lcom/instagram/android/feed/a/b/n;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 69
    invoke-static {p0}, Lcom/instagram/android/feed/a/b/n;->d(Lcom/instagram/android/feed/a/b/n;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/venue/model/Venue;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/16 v0, 0x8

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 71
    return-void

    .line 69
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
